<!DOCTYPE html>
<script>
onload = () => {
  window.close();
  window.portalHost.postMessage(window.closed);
};
</script>
